package org.september.pisces.excel.entity;

import org.september.smartdao.anno.AutoIncrease;
import org.september.smartdao.anno.Entity;
import org.september.smartdao.anno.Id;
import org.september.smartdao.common.BaseEntity;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;

/**
 * excel模板
 **/
@Entity
@Table("pisces_excel_tmpl")
public class ExcelTemplate extends BaseEntity {

    /**
     *
     */
    @Id
    @AutoIncrease
    @IsKey
    @IsAutoIncrement
    @Column(name = "id", length = 20)
    private Long id;

    @Size(max = 32)
    @NotEmpty
    @Column(name = "name", comment = "模板名称", length = 32, isNull = false)
    private String name;

    /**
     * 模板文件路径
     **/
    @Column(name = "path", comment = "模板文件路径", length = 255)
    private String path;

    /**
     * 模板文件在存储池中的uuid
     **/
    @Column(name = "file_uuid", comment = "文件存储id", length = 255)
    private String fileUuid;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getFileUuid() {
        return fileUuid;
    }

    public void setFileUuid(String fileUuid) {
        this.fileUuid = fileUuid;
    }

}
